/*
 * date: 2009-12-11 
 * author: Maciej Smolenski <jezdnia@gmail.com>
 */

#include "rpc_error.hpp"

namespace rpc_error{

rpc_category::rpc_category(const char *p_name) : m_name(p_name){
};

const char *rpc_category::name() const{
	return m_name;
};

std::string rpc_category::message(int ev) const{
	return std::string(clnt_sperrno(static_cast<clnt_stat>(ev)));	
};

bs::error_code make_error_code(rpc_enum_t e){
	return bs::error_code(static_cast<int>(e), g_rpc_category);
};

}

